OBJS=pthread_create threadtest1 threadtest2 pthread_cond semaphore pthread_cond_timedwait
CFLAGS=-g

all:$(OBJS)
pthread_create:pthread_create.cc
	g++ $(CFLAGS) -o $@ $< -lpthread
threadtest1:threadtest1.cc
	g++ $(CFLAGS) -o $@ $< -lpthread
threadtest2:threadtest2.cc
	g++ $(CFLAGS) -o $@ $< -lpthread
pthread_cond:pthread_cond.cc
	g++ $(CFLAGS) -o $@ $< -lpthread
semaphore:semaphore.cc
	g++ $(CFLAGS) -o $@ $< -lpthread -std=c++17
pthread_cond_timedwait:pthread_cond_timedwait.cc
	g++ $(CFLAGS) -o $@ $< -lpthread -std=c++17
clean:
	rm $(OBJS)
